from redis import Redis,StrictRedis
redis = StrictRedis(host="127.0.0.1", port=6379, db=0)

if __name__ == '__main__':
    # redis.set("name","xiaoming")
    # redis.setex("sms:13365786578", 300, "30303")
    # redis.setex("sms:13365781238", 300, "31234")